/* 文章详情页专用样式 */
/* 图标字体 */
.icon-calendar::before { content: "📅"; }
.icon-folder::before { content: "📁"; }
.icon-tag::before { content: "🏷️"; }
.icon-eye::before { content: "👁️"; }
.icon-arrow-right::before { content: "→"; }
.icon-arrow-left::before { content: "←"; }
.icon-home::before { content: "🏠"; }
.icon-file::before { content: "📄"; }
/* 文章详情容器 */
.post-detail-container {
    padding: 0 0;
    background-color: #f8f9fa;
}

.post-detail {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 40px;
}

/* 文章头部 */
.post-header {
    padding: 40px 40px 30px;
    border-bottom: 1px solid #ecf0f1;
}

.post-title {
    margin: 0 0 20px 0;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    color: #2c3e50;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    font-size: 15px;
    color: #7f8c8d;
}

.post-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-meta .meta-item i {
    font-size: 18px;
}

.post-meta .meta-item a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-meta .meta-item a:hover {
    color: #2980b9;
}

/* 文章图片 */
.post-image {
    position: relative;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 文章摘要 */
.post-excerpt {
    padding: 30px 40px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid #ecf0f1;
}

.post-excerpt p {
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
    color: #555;
    font-style: italic;
}

/* 文章内容 */
.post-content {
    padding: 40px;
}

.rich-content {
    line-height: 1.8;
    color: #2c3e50;
    font-size: 16px;
}

.rich-content h2 {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 600;
    margin: 40px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.rich-content h3 {
    color: #34495e;
    font-size: 24px;
    font-weight: 600;
    margin: 30px 0 15px 0;
}

.rich-content h4 {
    color: #34495e;
    font-size: 20px;
    font-weight: 600;
    margin: 25px 0 12px 0;
}

.rich-content p {
    margin: 0 0 20px 0;
    line-height: 1.8;
}

.rich-content ul, .rich-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.rich-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.rich-content strong {
    font-weight: 600;
    color: #2c3e50;
}

.rich-content em {
    font-style: italic;
    color: #555;
}

.rich-content blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-left: 4px solid #3498db;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}

.rich-content blockquote p {
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
}

.rich-content pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 25px 0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
}

.rich-content code {
    background: #f8f9fa;
    color: #e74c3c;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.rich-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* 文章底部 */
.post-footer {
    padding: 30px 40px;
    background: #f8f9fa;
    border-top: 1px solid #ecf0f1;
}

.post-tags {
    margin-bottom: 25px;
}

.tags-label {
    font-weight: 600;
    color: #2c3e50;
    margin-right: 10px;
}

.tag-link {
    display: inline-block;
    padding: 6px 12px;
    background: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    margin: 0 5px 5px 0;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.post-navigation {
    border-top: 1px solid #ecf0f1;
    padding-top: 25px;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #2980b9;
    transform: translateX(5px);
}

.nav-link:first-child:hover {
    transform: translateX(-5px);
}

/* 相关文章 */
.related-posts {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 40px;
}

.related-title {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    margin: 0;
    padding: 25px 30px;
    font-size: 20px;
    font-weight: 600;
}

.related-list {
    padding: 0;
}

.related-item {
    padding: 25px 30px;
    border-bottom: 1px solid #ecf0f1;
    transition: background-color 0.3s ease;
}

.related-item:last-child {
    border-bottom: none;
}

.related-item:hover {
    background-color: #f8f9fa;
}

.related-post-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.related-post-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-post-title a:hover {
    color: #3498db;
}

.related-post-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #7f8c8d;
}

.related-post-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 侧边栏 */
.sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.widget-title {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #fff;
    margin: 0;
    padding: 20px 25px;
    font-size: 18px;
    font-weight: 600;
}

/* 文章信息 */
.post-info {
    padding: 25px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #ecf0f1;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #2c3e50;
}

.info-value {
    color: #7f8c8d;
}

.info-value a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-value a:hover {
    color: #2980b9;
}

/* 分类列表 */
.category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-list li {
    border-bottom: 1px solid #ecf0f1;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-list a:hover {
    background-color: #f8f9fa;
    color: #3498db;
}

.category-list .count {
    color: #7f8c8d;
    font-size: 14px;
    background: #ecf0f1;
    padding: 2px 8px;
    border-radius: 12px;
}

/* 标签云 */
.tag-cloud {
    padding: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    display: inline-block;
    padding: 6px 12px;
    background: #ecf0f1;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: #3498db;
    color: #fff;
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .post-detail-container {
        padding: 20px 0;
    }
    
    .post-header {
        padding: 25px 20px 20px;
    }
    
    .post-title {
        font-size: 24px;
    }
    
    .post-meta {
        gap: 15px;
        font-size: 14px;
    }
    
    .post-excerpt {
        padding: 20px;
    }
    
    .post-excerpt p {
        font-size: 16px;
    }
    
    .post-content {
        padding: 25px 20px;
    }
    
    .rich-content h2 {
        font-size: 22px;
        margin: 30px 0 15px 0;
    }
    
    .rich-content h3 {
        font-size: 20px;
        margin: 25px 0 12px 0;
    }
    
    .post-footer {
        padding: 20px;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .related-title {
        padding: 20px;
        font-size: 18px;
    }
    
    .related-item {
        padding: 20px;
    }
    
    .sidebar {
        margin-top: 30px;
    }
    
    .widget-title {
        padding: 15px 20px;
        font-size: 16px;
    }
    
    .post-info {
        padding: 20px;
    }
    
    .category-list a {
        padding: 12px 20px;
    }
    
    .tag-cloud {
        padding: 20px;
    }
} 